package com.yoda.mall.api;

import com.yoda.mall.model.entity.oms.Order;
import com.yoda.mall.model.vo.OrderDetailVo;
import com.yoda.mall.model.vo.PageResult;

import java.text.ParseException;
import java.util.List;

/**
 * @author wjy
 * @date 2022年 12月 18日 15:34
 */
public interface OrderApi {

    void deletes(List<Integer> ids);

    PageResult<Order> orderList(Integer pageNum, Integer pageSize, String createTime, Integer orderType, String orderSn, Integer sourceType, Integer status,String receiverKeyword) throws ParseException;

    void updateClose(List<Long> ids, String note,String username);

    Integer updateDelivery(List<Order> orders,String username);

    OrderDetailVo getOrderDetailById(Long id);

    Integer updateOrderById(Order order,String username);
}
